/*
 * @Author: zll
 * @Date: 2024-08-28 14:44:13
 * @LastEditors: zll
 * @LastEditTime: 2024-08-28 14:46:08
 * @Description: file content
 * @FilePath: \erp-app\src\stores\rerfresh.ts
 */
import { defineStore } from 'pinia';

/**
 * 创建并导出字典存储的 Vue3 store 对象
 * @function
 * @returns {DictionaryStore} - 返回创建的字典存储对象
 */
export const useRefresh = defineStore('useRefresh', {
  state: () => ({
    needRefresh: false,
  }),
  actions: {
    setRefresh(value: boolean) {
      this.needRefresh = value;
    },
  },
});
